package com.siterwell.push;

import com.google.firebase.FirebaseApp;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.data.mongodb.config.EnableMongoAuditing;
import org.springframework.scheduling.annotation.EnableAsync;


@Slf4j
@MapperScan("com.siterwell.push.dao")
@EnableMongoAuditing
@ServletComponentScan
@EnableAsync
@SpringBootApplication
public class PushApplication implements CommandLineRunner {



    public static void main(String[] args) {
        SpringApplication.run(PushApplication.class, args);
    }

    @Override
    public void run(String... args)  {
        FirebaseApp.initializeApp(FirebaseApp.DEFAULT_APP_NAME);

    }

}
